package com.sxkf.template.vo.request.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author ZhangKeChen
 * @Date 2022/9/7
 * @Description
 */
@Data
public class CreateOrderVo {
    /**
     * 用户id，必传
     */
    @NotNull
    private String userId;

    @ApiModelProperty(value = "地址id")
    private String addressId;

    @ApiModelProperty(value = "优惠券id，没使用则传0")
    private String userCouponId;

//    @ApiModelProperty(value = "运费")
//    private BigDecimal orderFreight;

    @ApiModelProperty(value = "运费")
    private BigDecimal freight;

    @ApiModelProperty(value = "购物车选中的id列表",notes = "购物车下单时传")
    private List<String> checkIds;

    @ApiModelProperty(value = "商品id",notes = "购买单个商品时传")
    private String productId;

    @ApiModelProperty(value = "商品规格id",notes = "购买单个商品时传")
    private String productSpecId;

    @ApiModelProperty(value = "商品购买数量",notes = "购买单个商品时传")
    private Integer productCount;
    /**
     * 商品留言
     */
    private String remark;
    /**
     * 商品总价(需前端进行计算)
     */
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "支付方式（WX=微信app支付，ZFB=支付宝支付）")
    private String payType;

    @ApiModelProperty(value = "是否为拼团")
    private String isTeam;

    @ApiModelProperty(value = "拼团id（开团则传0）")
    private String spellOutId;
}
